package com.blog.service.impl;

import com.blog.product.Product;
import com.blog.service.ProductSevice;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @ClassName ProductServiceImpl
 * @Destription
 * @Author 天堂小野花
 * @Date 2025/7/31  23:20
 * @Version 1.0
 */
@Service
public class ProductServiceImpl implements ProductSevice {
    @Override
    public Product getProductById(Integer id) {
        Product product = new Product();
        product.setId(id);
        product.setProductName("苹果"+id);
        product.setPrice(new BigDecimal("99"));
        product.setNum(2);
        return product;
    }
}
